package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.TlPerm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermMapper extends BaseMapper<TlPerm> {
    @Select("SELECT p.* FROM tl_user u, tl_perm p,tl_user_perm up WHERE u.user_name=#{name} AND p.perm_id=up.perm_id")
    List<TlPerm> findByUserName(String name);
}
